<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ include file="/WEB-INF/jsp/struts/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="style/home.css" type="text/css">
<link href="./style/alternative.css" media="all" rel="stylesheet" />
<script type='text/javascript' src='script/prototype.js'></script>
<script type='text/javascript' src='script/common.js'></script>

<STYLE TYPE="text/css">
#accountTab {
border: 2px broove #eee;
padding-top: 1em;
}
#accountTab td{
padding:0.2em;
white-space:nowrap;
}
#accountTab a{
font-size:1em;color:#330099
}
</STYLE>

</head>
<body onload="HTMLArea.init();">
<c:choose>
<c:when test="${empty account}">
<c:set var="handler" value="account.htm?method=create" />
</c:when>
<c:otherwise>
<c:set var="handler" value="account.htm?method=update" />
</c:otherwise>
</c:choose>
<div id="content">
<div id="content_inner">
<form name="accountForm" id="accountForm" action="${handler}"  method="post">
<TABLE id="accountTab" class="its" width="95%">
<thead>
<tr><th colspan="2" align="center">我的帐号</th></tr>
  </thead>
  <TR>
    <TD width="10%">站点:</TD>
    <TD>
    <input type="text" NAME="siteName" id="siteName" style="width:100%" value="${account.siteName}"/>
    </TD>
  </TR>
    <TR>
    <TD width="10%">URL:</TD>
    <TD>
    <input type="text" NAME="siteUrl" id="siteUrl" style="width:100%" value="${account.siteUrl}"/>
    </TD>
  </TR>
  <TR>
    <TD>用户名:</TD>
    <TD>
    <input type="text" NAME="userName" id="userName" style="width:100%"  value="${account.userName}"/>
    </TD>
  </TR>
  <TR>
    <TD>密码: </TD>
    <TD>
    <input type="text" NAME="password" id="password" style="width:100%"  value="${account.password}"/>
    </TD>
  </TR>
  <TR>
    <TD>电子邮件: </TD>
    <TD>
    <input type="text" NAME="email" id="email" style="width:100%"  value="${account.email}"/>
    </TD>
  </TR>
  <TR>
    <TD colspan="2" align="center">
    <input type="hidden" name="accountID" id="accountID" value="${account.accountID}">
    <INPUT TYPE="submit" value="确认">&nbsp;&nbsp;
    <INPUT TYPE="reset" value="取消" onclick="javascript:history.back()"></TD>
  </TR>
  </TABLE>
</FORM>


</div></div>
</body>
</html>